<!--
 * @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
 * @Date: 2023-03-05 11:37:20
 * @LastEditors: cml 2048969935@qq.com
 * @LastEditTime: 2023-03-05 13:39:59
 * @FilePath: \web221102\后台\cml-gonggao.html
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../bootstrap-4.6.1-dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
    <script src="../bootstrap-4.6.1-dist/js/jquery.min.js"></script>
    <script src="../bootstrap-4.6.1-dist/js/bootstrap.min.js"></script>
</head>
<style>
    * {
        margin: 0;
        padding: 0;
    }
</style>

<body>
    <div class="row" style="width: 100%;max-height: 400px;">
        <div class=" col-md-8 row">
           
            <div class="  m-3 p-2 r-3">
                帖子标题
            </div>
            <div>
                <input type="text" class="rounded-pill m-3 p-2">
            </div>
            <div>
                <button class="rounded-pill p-2 m-3 bg-info">
                    <span class="glyphicon glyphicon-search"></span> 查询
                </button>
            </div>
        </div>
        <div class="col-md-4 ">
            <button class="bg-danger m-3 p-2 rounded-pill " style="float: right;">
                <span class="glyphicon glyphicon-trash m-2"></span>
                删除
            </button>
        </div>
    </div>

    <div>
        <table style="width: 100%;" id="tableOrders" class="table table-bordered table-striped table-hover text-center">
            <tr style="background-color: #746666; ">
                <td><input type="checkbox" name="" id=""></td>
                <td>索引</td>
               
                <td>帖子标题</td>
                <td>用户名</td>
                <td>状态</td>
                
                <td>操作</td>
            </tr>
            <tbody>

            </tbody>
        </table>


        <hr>


    </div>
</body>
<script>
    var settings = {
        "url": "http://150.158.55.119/readydesk-restServer/service/management/tables/changmengliang_person/query?size=5",
        "method": "GET",
        "timeout": 0,
        "headers": {

            "Authorization": "Bearer 03bfb1a7ff1348d98f724beb1665d75b",
            "Accept": "*/*",

        },
    };



    $.ajax(settings).done(function (response) {

        for (let i = 0; i < response.data.length; i++) {
            var str = `<tr>
                <td class="col-1" style="line-height: 128px;"><input type="checkbox" name="" id="${response.data[i].ID}"></td>
                <td class="col-2" style="line-height: 128px;">${response.data[i].NAME}</td>
                        <td class="col-2" style="line-height: 128px;">${response.data[i].NAME}</td>
                        <td class="col-2" style="line-height: 128px;">${response.data[i].AGE}</td>
                        <td class="col-2" style="line-height: 128px;">${response.data[i].NAME}</td>
                        <td class="col-3">
                             <button class="bg-primary m-3 p-2  rounded-pill ">
                <span class="glyphicon glyphicon-file "></span>
                详细
            </button>
            <button class="bg-warning m-3 p-2 rounded-pill ">
                <span class=".glyphicon .glyphicon-pushpin m-2"></span>
                修改
            </button>
          
            <button class="bg-danger m-3 p-2 rounded-pill ">
                <span class="glyphicon glyphicon-trash m-2"></span>
                删除
            </button>
            </td>
                        </tr>`
            $("tbody").append(str)
            // tb.append(str)  
        }
    });
</script>

</html>